import request from "@/utils/request";

export function listSample(query){
  return request({
    url: '/sample/list',
    method: 'get',
    params: query
  })
}

export function randomSampleNo(value){
  return request({
    url: '/sample/' + value + '/randomSampleNo',
    method: 'get'
  })
}

export function listSampler(){
  return request({
    url: '/sample/listSampler',
    method: 'get'
  })
}

export function saveSample(data){
  return request({
    url: '/sample/saveSample',
    method: 'post',
    data: data
  })
}

export function getSample(type,id){
  return request({
    url: '/sample/'+ type + '/' + id,
    method: 'get'
  })
}

export function updateSample(data){
  return request({
    url: '/sample/updateSample',
    method: 'post',
    data: data
  })
}


export function deleteSample(sampleIds){
  return request({
    url: '/sample/' + sampleIds,
    method: 'delete'
  })
}


